.PHONY:all

all:TcpClient TcpServer

LDFLAG=#-DSelfDefine=1

# TcpClient:TcpClientMain.cpp
# 	g++ -o $@ $^ -DSelfDefine=1 -std=c++14 -lpthread -ljsoncpp
# TcpServer:TcpServerMain.cpp
# 	g++ -o $@ $^ -DSelfDefine=1 -std=c++14 -lpthread -ljsoncpp

TcpClient:TcpClientMain.cpp
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp
TcpServer:TcpServerMain.cpp
	g++ -o $@ $^ $(LDFLAG) -std=c++14 -lpthread -ljsoncpp

# TcpClient:TcpClientMain.cpp
# 	g++ -o $@ $^  -std=c++14 -lpthread -ljsoncpp
# TcpServer:TcpServerMain.cpp
# 	g++ -o $@ $^  -std=c++14 -lpthread -ljsoncpp


.PHONY:clean
clean:
	rm -f TcpClient TcpServer